package com.ironman.original.generator;


import cn.hutool.core.util.RandomUtil;
import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class HeartrateOriginalDataGenerator extends OriginalDataGenerator {

    @Override
    public String dataType() {
        return "heartrate";
    }

    @Override
    public String generate() {
        return StrUtil.format("{}|{}", RandomUtil.randomInt(60, 200), RandomUtil.randomInt(60, 200));
    }

    @Override
    public void log(Boolean published, String data) {
        log.info("heartrate: {}\n{}", published, data);
    }
}
